import { defineStore } from 'pinia'

export const useLoading = defineStore({
  id: 'loading',
  state: () => {
      return {
          loadingFlag: false,
      }
  },
  actions: {
      openLoading(){
          this.loadingFlag = true
      },
      closeLoading(){
          this.loadingFlag = false
      }
  }
})